package com.dt.dubai.sys.service;

import com.dt.dubai.sys.entity.SysAdminFirmDepartmentEntity;
import com.dt.dubai.sys.service.innate.SysAdminFirmDepartmentSerInnateAbsImp;
import com.dt.dubai.sys.service.ser.SysAdminFirmDepartmentService;
import org.springframework.stereotype.Service;

@Service
public class SysAdminFirmDepartmentServiceImp extends SysAdminFirmDepartmentSerInnateAbsImp implements SysAdminFirmDepartmentService {

    /*innateServiceStart*/
    @Override
    protected void userSavEntity(SysAdminFirmDepartmentEntity inEntity) {

    }

    @Override
    protected void userModEntity(SysAdminFirmDepartmentEntity inEntity, SysAdminFirmDepartmentEntity upEntity) {
        upEntity.setAdminLoginRecordId(inEntity.getAdminLoginRecordId()); // 用户登录记录ID
        upEntity.setDeptNameZh(inEntity.getDeptNameZh()); // 部门名称
        upEntity.setYesLeaf(inEntity.getYesLeaf()); // 是否叶子
        upEntity.setDeptPid(inEntity.getDeptPid()); // 父节点记录ID
        upEntity.setDeptOrder(inEntity.getDeptOrder()); // 序号

    }
    /*innateServiceEnd*/
    /*以上内容请误删除或是移动，系统升级使用，static系统升级覆盖用户修改，用户代码请写入下方*/
}
